import React, { memo } from 'react'
import {useNavigate} from 'react-router-dom'
const Home = memo(() => {
    const navigate=useNavigate()
  return (
    <div>
        <button onClick={()=>navigate('/Test?title="欢迎来到react"')}>点击前往</button>
        <button onClick={()=>navigate('/Shops')}>点击前往购物车</button>
        <button onClick={()=>navigate('/Xiang')}>点击前往咖啡页面</button>
    </div>
  )
})

export default Home